package cn.lut.service.impl;


import cn.lut.dao.UserDao;
import cn.lut.domain.SysUser;
import cn.lut.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service("userService")
public class UserServiceImpl implements UserService {


    @Autowired
    private UserDao dao = null;

//    可以不需要
//    public void setDao(UserDao dao) {
//        this.dao = dao;
//    }

    @Override
    public void addUser(SysUser user) {
        //处理数据，调用dao的方法
        //调用dao的方法
        dao.insertUser(user);
    }
}
